package com.cy.pj.common.util;

import com.cy.pj.common.exception.ServiceException;
import sun.tracing.dtrace.DTraceProviderFactory;

public class ValidUitls {
    public static void isArgValid(Boolean stattement,String msg)
    {
if (stattement) throw new IllegalArgumentException(msg);
    }
    public static void isResultValid(boolean statement, String msg){
        if (statement) throw new ServiceException(msg);
    }
}
